﻿<UserControl
	x:Class="SilverlightApplication.SearchPanels"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" 
    HorizontalAlignment="Right" VerticalAlignment="Bottom"
    Width="700"
    Height="400" xmlns:SilverlightApplication="clr-namespace:SilverlightApplication">
   
	<UserControl.Resources>
        <Storyboard x:Name="stbMessage" Completed="stbMessage_Completed">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="NoInputMsg" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:04" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="NoInputMsg" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:04" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="stbBasicPanelShow" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DABasicPanelShowX" Storyboard.TargetName="trtBasicPanel" Storyboard.TargetProperty="X" Duration="00:00:00.4" />
            <DoubleAnimation x:Name="DABasicPanelShowY" Storyboard.TargetName="trtBasicPanel" Storyboard.TargetProperty="Y" BeginTime="00:00:00.4" Duration="00:00:00.4" />
        </Storyboard>
        <Storyboard x:Name="stbBasicPanelHide" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DABasicPanelHideX" Storyboard.TargetName="trtBasicPanel" Storyboard.TargetProperty="X" BeginTime="00:00:00.4" Duration="00:00:00.4" />
            <DoubleAnimation x:Name="DABasicPanelHideY" Storyboard.TargetName="trtBasicPanel" Storyboard.TargetProperty="Y" Duration="00:00:00.4" />
        </Storyboard>
        <Storyboard x:Name="stbAdvancedPanelShow" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DAAdvancedPanelShowX" Storyboard.TargetName="trtAdvancedPanel" Storyboard.TargetProperty="X" Duration="00:00:00.4"/>
            <DoubleAnimation x:Name="DAAdvancedPanelShowY" Storyboard.TargetName="trtAdvancedPanel" Storyboard.TargetProperty="Y" BeginTime="00:00:00.4" Duration="00:00:00.4" />
        </Storyboard>
        <Storyboard x:Name="stbAdvancedPanelHide" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DAAdvancedPanelHideX" Storyboard.TargetName="trtAdvancedPanel" Storyboard.TargetProperty="X" BeginTime="00:00:00.4" Duration="00:00:00.4"/>
            <DoubleAnimation x:Name="DAAdvancedPanelHideY" Storyboard.TargetName="trtAdvancedPanel" Storyboard.TargetProperty="Y" Duration="00:00:00.4" />
        </Storyboard>
        <Storyboard x:Name="stbAdvancedPanelHideLeft" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DAAdvancedPanelHideLeftX" Storyboard.TargetName="trtAdvancedPanel" Storyboard.TargetProperty="X" BeginTime="00:00:00.4" Duration="00:00:00.4"/>
            <DoubleAnimation x:Name="DAAdvancedPanelHideLeftY" Storyboard.TargetName="trtAdvancedPanel" Storyboard.TargetProperty="Y" Duration="00:00:00.4" />
        </Storyboard>
        <Storyboard x:Name="stbAdvancedPanelRight" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DAAdvancedPanelRightX" Storyboard.TargetName="trtAdvancedPanel" Storyboard.TargetProperty="X" BeginTime="00:00:00.4" Duration="00:00:00.4"/>
        </Storyboard>
        <Storyboard x:Name="stbAdvancedPanelLeft" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DAAdvancedPanelLeftX" Storyboard.TargetName="trtAdvancedPanel" Storyboard.TargetProperty="X" Duration="00:00:00.4"/>
        </Storyboard>
        <Storyboard x:Name="stbAdvancedPanelDown" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DAAdvancedPanelDownY" Storyboard.TargetName="trtAdvancedPanel" Storyboard.TargetProperty="Y" Duration="00:00:00.4" />
        </Storyboard>
        <Storyboard x:Name="stbButtonsShowAdv" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DAButtonsShowAdvX" Storyboard.TargetName="trtButtons" Storyboard.TargetProperty="X" Duration="00:00:00.8" />
            <DoubleAnimation Storyboard.TargetName="trtButtons" Storyboard.TargetProperty="Y"
                             To="24" Duration="00:00:00.8" />
        </Storyboard>
        <Storyboard x:Name="stbButtonsShowBas" Completed="AnimationCompleted">
            <DoubleAnimation x:Name="DAButtonsShowBasX" Storyboard.TargetName="trtButtons" Storyboard.TargetProperty="X" Duration="00:00:00.8" />
            <DoubleAnimation Storyboard.TargetName="trtButtons" Storyboard.TargetProperty="Y"
                             To="24" Duration="00:00:00.8" />
        </Storyboard>
        <Storyboard x:Name="stbButtonsHide" Completed="AnimationCompleted">
            <DoubleAnimation Storyboard.TargetName="trtButtons" Storyboard.TargetProperty="Y"
                             To="80" Duration="00:00:00.4"/>
        </Storyboard>
        <LinearGradientBrush x:Key="Brush1" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF080808"/>
            <GradientStop Color="#FF19191A" Offset="0.455"/>
            <GradientStop Color="#FF000000" Offset="0.996"/>
            <GradientStop Color="#FF2F2F31" Offset="0.25"/>
            <GradientStop Color="#FF000000" Offset="0.857"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="bshCrystal" EndPoint="0.5,1" StartPoint="0.5,0">
        	<GradientStop Color="#FFB7BECE"/>
        	<GradientStop Color="#FFC2C8D2" Offset="0.991"/>
        	<GradientStop Color="#FF7A858A" Offset="0.335"/>
        	<GradientStop Color="#FFC1C7D0" Offset="0.69199997186660767"/>
        </LinearGradientBrush>
		<LinearGradientBrush x:Key="bshBlue" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF1222CF"/>
			<GradientStop Color="#FF03142A" Offset="1"/>
			<GradientStop Color="#FF0A1361" Offset="0.509"/>
		</LinearGradientBrush>
		<LinearGradientBrush x:Key="bshOrange" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFFA740B" Offset="0.476"/>
			<GradientStop Color="#FF070707" Offset="1"/>
		</LinearGradientBrush>
		<LinearGradientBrush x:Key="bshGrey" EndPoint="0.5,1" StartPoint="0.5,0" SpreadMethod="Reflect">
			<GradientStop Color="#FF868FBD"/>
			<GradientStop Color="#FF7575C6" Offset="0.5130000114440918"/>
			<GradientStop Color="#FF73759B" Offset="1"/>
		</LinearGradientBrush>
		<LinearGradientBrush x:Key="bshSchButt" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF73759B"/>
			<GradientStop Color="#FF363647" Offset="1"/>
			<GradientStop Color="#FFB7B9F0" Offset="0.152"/>
			<GradientStop Color="#FF8587AD" Offset="0"/>
			<GradientStop Color="#FF4D4D66" Offset="0.7369999885559082"/>
		</LinearGradientBrush>
    </UserControl.Resources>
	
	<Grid x:Name="LayoutRoot">
        
		<Grid x:Name="cnvBooksAdvPanel" VerticalAlignment="Bottom" HorizontalAlignment="Right">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="25"/>
				<ColumnDefinition Width="*"/>
				<ColumnDefinition Width="50"/>
			</Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="35"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="100"/>
            </Grid.RowDefinitions>
            <Grid.RenderTransform>
				<TranslateTransform x:Name="trtAdvancedPanel" />
			</Grid.RenderTransform>
			<Rectangle RadiusX="20" RadiusY="20" StrokeThickness="4" Opacity="0.8" Grid.ColumnSpan="3" Grid.RowSpan="3" OpacityMask="{x:Null}">
				<Rectangle.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FF20B320"/>
						<GradientStop Color="#FF76D076" Offset="0.076"/>
						<GradientStop Color="#FF148814" Offset="0.205"/>
						<GradientStop Color="#FF006600" Offset="0.7369999885559082"/>
						<GradientStop Color="#FF006600" Offset="0.92000001668930054"/>
						<GradientStop Color="#FF14B914" Offset="0.397"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
				<Rectangle.Stroke>
					<LinearGradientBrush EndPoint="317.5,261" StartPoint="317.5,0" MappingMode="Absolute" SpreadMethod="Reflect">
						<GradientStop Color="#FF006600" Offset="1"/>
						<GradientStop Color="#FF006600" Offset="0"/>
						<GradientStop Color="#FFE3FFE8" Offset="0.518"/>
					</LinearGradientBrush>
				</Rectangle.Stroke>
			</Rectangle>
            <TextBlock x:Name="txbAdvanced" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20,0,0,0" Foreground="{StaticResource bshText}" MouseLeftButtonUp="cnvBooksAdvPanel_MouseLeftButtonUp" Cursor="Hand" FontFamily="Portable User Interface" FontSize="18" Text="Advanced Search" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0"/>
            <Grid x:Name="grdAdvancedContent" Grid.Column="1" Grid.Row="1">
            	
            </Grid>
        </Grid>
		 
		<Grid x:Name="cnvBooksBasicPanel" VerticalAlignment="Bottom" HorizontalAlignment="Right">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="25"/>
				<ColumnDefinition Width="*"/>
				<ColumnDefinition Width="50"/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="35"/>
				<RowDefinition Height="*"/>
				<RowDefinition Height="100"/>
			</Grid.RowDefinitions>
			<Grid.RenderTransform>
				<TranslateTransform x:Name="trtBasicPanel"/>
			</Grid.RenderTransform>
			<Rectangle RadiusX="20" RadiusY="20" StrokeThickness="4" Opacity="0.895" Grid.RowSpan="3" Fill="{StaticResource bshCrystal}" Grid.ColumnSpan="3">
				<Rectangle.Stroke>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" SpreadMethod="Reflect">
						<GradientStop Color="#FF1C193D"/>
						<GradientStop Color="#FFFFFFFF" Offset="0.502"/>
						<GradientStop Color="#FF464270" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Stroke>
			</Rectangle>
            <TextBlock x:Name="tbxBasicSearch" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20,0,0,0" Foreground="{StaticResource bshText}" MouseLeftButtonUp="cnvBooksBasicPanel_MouseLeftButtonUp" Cursor="Hand" FontFamily="Portable User Interface" FontSize="18" Text="Basic Search" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0"/>
            <Grid x:Name="grdBasicContent" Grid.Column="1" Grid.Row="1">
            	
            </Grid>
		</Grid>
        
		<Grid x:Name="cnvButtons" VerticalAlignment="Bottom" HorizontalAlignment="Right">
			<Grid.ColumnDefinitions>
                <ColumnDefinition Width="10"/>
				<ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="10"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="10"/>
			</Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="10"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>
			<Grid.RenderTransform>
				<TranslateTransform x:Name="trtButtons" X="0" Y="80"/>
			</Grid.RenderTransform>
			<Rectangle RadiusX="14" RadiusY="14" StrokeThickness="4" Opacity="1" Grid.Column="0" Grid.ColumnSpan="5" Grid.Row="0" Grid.RowSpan="3" Fill="#FF9C9EAF">
				<Rectangle.Stroke>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" SpreadMethod="Reflect">
						<GradientStop Color="#FF181835"/>
						<GradientStop Color="#FFFFFFFF" Offset="0.54500001668930054"/>
						<GradientStop Color="#FF17174F" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Stroke>
			</Rectangle>
            
			<Grid x:Name="cnvSearchButton" Width="100" Height="30" Grid.Column="1" Grid.Row="1" MouseLeftButtonDown="cnvSearchButton_MouseLeftButtonDown" MouseLeftButtonUp="cnvSearchButton_MouseLeftButtonUp">
				<Grid x:Name="cnvSearchDown">
					<Rectangle RadiusX="10" RadiusY="10" Fill="{StaticResource bshCrystal}">
						<Rectangle.Stroke>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FF23178C"/>
								<GradientStop Color="#FF1D0878" Offset="1"/>
								<GradientStop Color="#FF928DBF" Offset="0.518"/>
							</LinearGradientBrush>
						</Rectangle.Stroke>
	    			</Rectangle>
				</Grid>
				<Grid x:Name="cnvSearchUp">
					<Rectangle RadiusX="10" RadiusY="10" Fill="{StaticResource bshCrystal}">
						<Rectangle.Stroke>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FF23178C"/>
								<GradientStop Color="#FF1D0878" Offset="1"/>
								<GradientStop Color="#FF928DBF" Offset="0.518"/>
							</LinearGradientBrush>
						</Rectangle.Stroke>
					</Rectangle>
				</Grid>
				<TextBlock x:Name="tbkSearch" Text="Search" FontFamily="Portable User Interface" FontSize="12" FontWeight="Bold" Foreground="{StaticResource bshBlue}" VerticalAlignment="Center" HorizontalAlignment="Center" />
			</Grid>
            
			<Grid x:Name="cnvClearButton" Width="100" Height="30" Grid.Column="3" Grid.Row="1" MouseLeftButtonDown="cnvClearButton_MouseLeftButtonDown" MouseLeftButtonUp="cnvClearButton_MouseLeftButtonUp">
				<Grid x:Name="cnvClearDown">
					<Rectangle RadiusX="10" RadiusY="10" Fill="{StaticResource bshCrystal}">
						<Rectangle.Stroke>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FF23178C"/>
								<GradientStop Color="#FF1D0878" Offset="1"/>
								<GradientStop Color="#FF928DBF" Offset="0.518"/>
							</LinearGradientBrush>
						</Rectangle.Stroke>
					</Rectangle>
				</Grid>
				<Grid x:Name="cnvClearUp" RenderTransformOrigin="0.5,0.5">
					<Rectangle RadiusX="10" RadiusY="10" Fill="{StaticResource bshCrystal}">
						<Rectangle.Stroke>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FF23178C"/>
								<GradientStop Color="#FF1D0878" Offset="1"/>
								<GradientStop Color="#FF928DBF" Offset="0.518"/>
							</LinearGradientBrush>
						</Rectangle.Stroke>
					</Rectangle>
				</Grid>
				<TextBlock x:Name="tbkClear" Text="Clear" FontFamily="Portable User Interface" FontSize="12" FontWeight="Bold" Foreground="{StaticResource bshBlue}" VerticalAlignment="Center" HorizontalAlignment="Center" />
			</Grid>
            
			<Canvas x:Name="cnvPopupMessage" Margin="-198,-106,1,-5" Grid.ColumnSpan="5" Grid.RowSpan="2">
				<Path Width="267.808" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Data="M45.111042,-0.46751651 C69.430916,-0.46751651 191.17612,-0.46751651 191.17612,-0.46751651 C203.62721,-0.46751651 203.45549,13.961804 203.22221,25.354223 C203.05522,33.509312 204.30295,44.260479 197.40201,51.175964 C189.07523,59.52029 177.41856,58.492123 172.46519,58.492123 C142.24413,58.492123 92.983513,58.777454 60.137562,58.243187 L53.836403,58.1395 L48.267982,58.570675 C27.870888,60.888889 14.942019,68.261024 7.6065035,74.154198 C3.9387226,77.100807 1.6693195,79.677612 0.56389755,81.068146 C0.011182413,81.76339 -0.25051937,82.162056 -0.25051937,82.162056 C11.696684,41.43755 10.067818,12.18747 21.918287,3.2625964 C26.87114,-0.46751651 45.111042,-0.46751651 45.111042,-0.46751651 z" Height="88" RenderTransformOrigin="0.5,0.5" x:Name="path" Canvas.Left="2.878" Canvas.Top="40">
					<Path.Fill>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFFFFFFF" Offset="0.674"/>
							<GradientStop Color="#FF253497" Offset="0.929"/>
							<GradientStop Color="#FFB7C3EE" Offset="0"/>
						</LinearGradientBrush>
					</Path.Fill>
					<Path.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="-1"/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform Y="0" X="-2.999420166015625"/>
						</TransformGroup>
					</Path.RenderTransform>
				</Path>
				<TextBlock Width="233.867" FontFamily="Portable User Interface" FontSize="16" RenderTransformOrigin="0.493,1.262" x:Name="NoInputMsg" Height="26.25" Canvas.Left="6.984" Canvas.Top="56" TextAlignment="Center" Foreground="{StaticResource bshText}"><TextBlock.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</TextBlock.RenderTransform><Run Text="E"/><Run Text="nt"/><Run Text="er"/><Run Text=" Search data"/></TextBlock>
			</Canvas>
		</Grid>
			 
	</Grid>
</UserControl>
